using System;

class Program
{
	static void Main(string[] args)
	{
		Console.WriteLine("Enter a number between 0 and 999");
		int digit;
		int temp;
		int number = int.Parse(Console.ReadLine());
		string[] digits = { "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten" };
		string[] except = { "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen" };
		string[] tenths = { "Ten", "Twenty", "Thirty", "Fourty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety", "Hundred" };
		if (number > 99)
		{
			digit = number / 100;
			number = number - (digit * 100);
			if (number > 19)
			{
				temp = number;
				temp = number / 10;
				number = number - (temp * 10);
				if (number > 0)
				{
					Console.WriteLine(digits[digit - 1] + " Hundred" + " and " + tenths[temp - 1] + " " + digits[number - 1]);
				}
				else
				{
					Console.WriteLine(digits[digit-1]+" Hundred"+" and "+ tenths[temp-1]);
				}
			}
			else if (number > 10)
			{
				temp = number;
				temp = number / 10;
				number = number - (temp * 10);
				Console.WriteLine(digits[digit - 1] + " Hundred" +" and "+ except[number - 1]);
			}
			else if(number !=0)
			{
				Console.WriteLine(digits[digit-1]+" Hundred"+" and "+digits[number-1]);
			}
			else Console.WriteLine(digits[digit-1]+" Hundred");
		}
		else if (number > 19)
		{
			temp = number;
			temp = number / 10;
			number = number - (temp * 10);
			if (number > 0)
			{
				Console.WriteLine(tenths[temp-1]+" "+digits[number-1]);
			}
			else Console.WriteLine(tenths[temp-1]);
		}
		else if (number > 10)
		{
			temp = number;
			temp = number / 10;
			number = number - (temp * 10);
			Console.WriteLine(except[number-1]);
		}
		else if (number != 0)
		{
			Console.WriteLine(digits[number-1]);
		}
		else Console.WriteLine("Zero");
	}
}
